<template>
  <div>
    <div style="height: 50px"></div>
    <van-tabbar
      v-model="number"
      active-color="#07c160"
    >
      <van-tabbar-item to="/index" icon="sign">选课</van-tabbar-item>
      <van-tabbar-item to="/index/my-courses" icon="video-o">我的课程</van-tabbar-item>
      <van-tabbar-item to="/index/my-home" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
  export default {
    props: {
      active: {
        type: Number,
        default: 0
      }
    },
    data() {
      return {
        number: 0
      }
    },
    mounted() {
      this.number = this.active
    }
  }
</script>

<style scoped>

</style>
